package org.smartopen.unionpay.openapi.config;

import lombok.RequiredArgsConstructor;
import org.smartframework.unionpay.config.SmartUnionPayConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
@AutoConfigureBefore(SmartUnionPayConfiguration.class)
@RequiredArgsConstructor
public class UnionPayConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }


}
